import { reqGetReportData } from "@/api/mock/index"
import type { ReportDataModel } from "@/api/mock/model/data"
import { defineStore } from 'pinia'

export const useReportDataStore = defineStore('reportData', {
  state: () => {
    return {

reportInfo:{} as ReportDataModel

     }
  },
  // 也可以这样定义
  // state: () => ({ count: 0 })
  actions: {
    //获取数据的方法
   async getReportInfoData() {
      const res = await reqGetReportData()
      this.reportInfo = res;
    }
  },
})